﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="TemplateH4.Register" MasterPageFile="~/Site1.Master"%>



<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style2
        {
            width: 139px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div> 
    <center>
   <div id ="right-column" style="float:none">
        <!-- box begin -->
				<div class="box">
							<div class="left-top-corner png"><div class="right-top-corner png"><div class="border-top png"></div></div></div>
							<div class="border-left png">
								<div class="border-right png">
									<div class="inside png">
                 
                <center>
                <h2>
                    Đăng Kí Tài Khoản
                </h2>
                
                
                 <asp:CreateUserWizard ID="CreateUserWizard1" runat="server" 
            Height="335px" Width="495px" oncreateduser="CreateUserWizard1_CreatedUser" 
                        CreateUserButtonText="Đăng Kí" 
                        
                        DuplicateUserNameErrorMessage="Tên tài khoản đã tồn tại. Vui lòng Đăng kí tài khoản khác.">
            <WizardSteps>
                <asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server" Title="Đăng Kí" >
                    <ContentTemplate>
                        <table border="0" style="font-size:100%;height:335px;width:422px;">
                            <tr>
                                <td align="center" colspan="2">
                                   </td>
                            </tr>
                            <tr>
                                <td align="right" class="style2">
                                    <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name:</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                        ControlToValidate="UserName" ErrorMessage="User Name is required." 
                                        ToolTip="User Name is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" class="style2">
                                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                        ControlToValidate="Password" ErrorMessage="Password is required." 
                                        ToolTip="Password is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" class="style2">
                                    <asp:Label ID="ConfirmPasswordLabel" runat="server" 
                                        AssociatedControlID="ConfirmPassword">Confirm Password:</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" 
                                        ControlToValidate="ConfirmPassword" 
                                        ErrorMessage="Confirm Password is required." 
                                        ToolTip="Confirm Password is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" class="style2">
                                    <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">E-mail:</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="Email" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="EmailRequired" runat="server" 
                                        ControlToValidate="Email" ErrorMessage="E-mail is required." 
                                        ToolTip="E-mail is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" class="style2">
                                    <asp:Label ID="QuestionLabel" runat="server" AssociatedControlID="Question">Security Question:</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="Question" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="QuestionRequired" runat="server" 
                                        ControlToValidate="Question" ErrorMessage="Security question is required." 
                                        ToolTip="Security question is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" class="style2">
                                    <asp:Label ID="AnswerLabel" runat="server" AssociatedControlID="Answer">Security Answer:</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="Answer" runat="server" Width="251px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="AnswerRequired" runat="server" 
                                        ControlToValidate="Answer" ErrorMessage="Security answer is required." 
                                        ToolTip="Security answer is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            

                         
                            
                            <tr>
                                <td align="right" class="style1">
                                    <asp:Label ID="Label1" runat="server" >Địa chỉ: </asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtDiaChi" runat="server" Width="170px"></asp:TextBox>
                                    
                                </td>
                            </tr>
                             <tr>
                                <td align="right" class="style1">
                                    <asp:Label ID="Label2" runat="server" >Điện Thoại: </asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtDienThoai" runat="server"></asp:TextBox>
                                    
                                </td>
                            </tr>
                             <tr>
                                <td align="right" class="style1">
                                    <asp:Label ID="Label3" runat="server" >Yahoo Messenger:  </asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtMes" runat="server"></asp:TextBox>
                                    
                                </td>
                            </tr>
                            
                             <tr>
                                <td align="right" class="style1">
                                    <asp:Label ID="Label4" runat="server" >Website: </asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtWebsite" runat="server"></asp:TextBox>
                                    
                                </td>
                            </tr>
                             
                            <tr>
                                <td align="center" colspan="2">
                                    <asp:CompareValidator ID="PasswordCompare" runat="server" 
                                        ControlToCompare="Password" ControlToValidate="ConfirmPassword" 
                                        Display="Dynamic" 
                                        ErrorMessage="The Password and Confirmation Password must match." 
                                        ValidationGroup="CreateUserWizard1"></asp:CompareValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="2" style="color:Red;">
                                    <asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal>
                                </td>
                            </tr>
                            
                        </table>
                    </ContentTemplate>
                </asp:CreateUserWizardStep>
                <asp:CompleteWizardStep runat="server" Title="Đăng Kí Hoàn Tất">
                    <ContentTemplate>
                        <table border="0" style="font-size:100%;height:335px;width:421px;">
                            <tr>
                                <td align="center" colspan="2">
                                    Đăng Kí Hoàn Tất</td>
                            </tr>
                            <tr>
                                <td align="center">
                                    Tài khoản đã được tạo thành công!</td>
                            </tr>
                            <tr>
                                <td align="right" colspan="2">
                                    <asp:Button ID="ContinueButton" runat="server" CausesValidation="False" 
                                        CommandName="Continue" Text="Quay trở lại trang chủ" 
                                        ValidationGroup="CreateUserWizard1" PostBackUrl="~/Default.aspx" />
                                </td>
                            </tr>
                        </table>
                    </ContentTemplate>
                </asp:CompleteWizardStep>
            </WizardSteps>
        </asp:CreateUserWizard>
    
             </center> 
            	</div>
				</div>
			</div>
			<div class="left-bot-corner png"><div class="right-bot-corner png"><div class="border-bot png"></div></div></div>
		</div>
      <!-- Box end--> 
</div>
    </center>
</div>  
</asp:Content>
